package RadianceM.DistributionSystem.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@ToString
@Schema(
        name = "AuthorInfo",
        title = "数据作者表",
        description = ""
)
@TableName(value = "all_author_info")
public class AuthorInfo {

    @Schema(title = "数据作者id", description = "")
    @TableId(value = "author_info_id")
    private Long id;

    @Schema(title = "数据上传者id", description = "")
    @TableField(value = "user_id")
    private Long userId;

    @Schema(title = "作者名称", description = "")
    @TableField(value = "author_name")
    private String name;

    @Schema(title = "数据上传时间", description = "")
    @TableField(value = "author_upload_time")
    private Date time;
}
